package day18.zhiyou200;

public class Demo01 extends Thread{
    static int count = 0;
    @Override
    public void run() {
        System.out.print("分线程" + count++ + "：");
        for (int i = 0; i < 10; i++) {
            System.out.print(i + " ");
            if (i == 9)
                System.out.println();
        }
    }
}

class Test{
    public static void main(String[] args) {
        new Demo01().start();
        new Demo01().start();
        new Demo01().start();
    }
}